public class Parser{
private static String param;
private static String select;
	public static String pars(String parsme)
{
	parsme = parsme.toLowerCase();
	parsme = parsme.trim();
	if(!parsme.contains(" "))
	{
		param = "";
	}
	else
	{
		param = Sys.split2(parsme);
		parsme = Sys.split1(parsme);
	}
	if(Globals.searchInv(parsme))
	{
		System.out.println("Use\tInfo");
		select = parsme;
		return "void";
		
	}
	switch(parsme)
	{
		case "n": case "north": 
			return "n";
		case "s": case "south":
			return "s";
		case "e": case "east": 
			return "e";
		case "w": case "west":
			return "w";
		case "u": case "up":
			return "u";
		case "d": case "down":
			return "d";
		case "save":
			System.out.println("Not quite sure how to yet");
			return "void";
		case "t": case "take": case "grab":
			return "t";
		case "stats":
			Globals.dispStats();
			return "void";
		case "inv": case "bag":
			Globals.getInv();
			return "void";
		case "equipped": case "worn":
			Globals.getEquipped();
			return "void";
		case "help":
			System.out.println("u kno what ur doin");
			return "void";
		case "obj":
			System.out.println(Globals.obj());
			return "void";
		case "tp":
			World.setLocat(Parser.param());
			 World.go("l");
			return "void";
		case "menue": case "start":
			System.out.println("Stats\tEquipped\tInv\tSave\tHelp");
		case "use":
			return param;
		case "info":
			int num = Globals.itemNum(param);
			Globals.getInfo(num);
			return "void";
		default:
			return parsme; 
	}
	
}
	public static String param()
	{
		return param;
	}
	public static void setParam(String newParam)
	{
		param = newParam;
	}
}
